package com.isscollage.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.isscollage.entity.Ticket;
import com.isscollage.search.TicketSearch;

public interface TicketDao {

	public List<Ticket> searchTicketsByCon(TicketSearch search);
		
	public boolean insert(Ticket ticket);
	
	@Select("select * from pw_ticket")
	public List<Ticket> searchAll();
	
	public Ticket getTicketById(Integer ticketId);
	
	public boolean update(Ticket ticket);
	
	public boolean deleteAll(@Param("ids") Integer ids[]);
}
